import { request } from "@/utils/request.js"

// 服务订单列表
export function getOrderList(data) {
  return request({
    url: '/wx/order/list',
    method: 'post',
    data
  })
}

// 取消预约
export function cancelSubscribe(data) {
  return request({
    url: '/wx/order/cancelSubscribe',
    method: 'post',
    data
  })
}

// 微信登录
export function wxlogin(data) {
    return request({
        url: '/wx/wxlogin',
        method: 'post',
        data: data
    })
}

// 更新用户信息
export function wxUpdateUser(data) {
    return request({
        url: '/wx/wxUpdateUser',
        method: 'post',
        data: data
    })
}

// 删除订单
export function deleteOrder(data) {
  return request({
    url: '/wx/order/delete',
    method: 'post',
    data
  })
}

// 评价
export function givescore(data) {
  return request({
    url: '/wx/order/givescore',
    method: 'post',
    data
  })
}
// 确认完成服务
export function completeSubscribe(data) {
  return request({
    url: '/wx/order/complete',
    method: 'post',
    data
  })
}

